<!DOCTYPE html>
<script type="text/javascript" src="../js/angular.min.js" ></script>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		
	</head>
	<body >
		<div ng-app="myapp" ng-controller="myctrl">
			<input type="text" name="name" ng-model="name" />
		
		<div>
			{{name}}
		</div>
		<div ng-bind="name">
		</div>
		</div>
		<script type="text/javascript">
			//初始化myapp模块
			var myapp = angular.module("myapp" ,[]);
			//定义该模块下的控制器
			myapp.controller("myctrl",["$scope",function($scope){
				$scope.name="你是在国家级"
			}])
			
		</script>
	</body>
</html>
